<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>传统布局方式的局限</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            width: 1000px;
            height: 200px;
            border: 1px solid #ccc;
            box-sizing: border-box;
        }

        .first {
            width: 200px;
            height: 100%;
            background-color: skyblue;
            float: left;
        }

        .second {
            width: 200px;
            height: 100%;
            background-color: pink;
            float: right;
        }

        .third {
            width: 200px;
            height: 100%;
            background-color: green;
            margin: 0 auto;
        }

        .forth {
            width: 200px;
            height: 100%;
            background-color: lightcoral;
            margin: 0 auto;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="first"></div>
        <div class="second"></div>
        <div class="third"></div>
        <div class="forth"></div>
    </div>
</body>
</html>